using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class 登录成功提示 : MonoBehaviour
{
    public Animator animator;
    // Start is called before the first frame update
    void Start()
    {
        // 协程
        StartCoroutine(PlayAnimation());
    }

    // 动画播放协程
    IEnumerator PlayAnimation()
    {
        yield return new WaitForSeconds(1);
        // 播放"下落"动画
        animator.Play("下落");
        // 动画播放完毕后，继续执行下一步
        yield return new WaitForSeconds(3.5f);
        // 播放"上升"动画
        animator.Play("上升");
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
